package com.lovo.service;

import com.github.pagehelper.PageInfo;
import com.lovo.bean.Role;
import com.lovo.bean.RoleDistribution;
import com.lovo.bean.Throne;

public interface RoleService {
    PageInfo<Role> getRoles(int pageNo, int parseInt);

    boolean addRole(Role r);

    PageInfo<Role> getRolesByQuery(int pageNo, int parseInt, String roleName);

    boolean deleteRole(int parseInt);

    PageInfo<Throne> getRoleThrone(int pageNo, int parseInt, int parseInt1);

    PageInfo<RoleDistribution> getAllRoles();

    PageInfo<Integer> getUserRole(int parseInt);
}
